import requests
import json

headers= {"Content-Type":"application/json"}
datax = {'aaa':"bbb", 'Ccc':"dddd"}
aa = requests.post(url="http://127.0.0.1:5000/rest_test", data=json.dumps(datax), headers=headers)
print(aa)
print(aa.content)